/*
 * Baia.java
 *
 * Created on October 7, 2007, 10:49 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package petstore.model;

import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Entity class Baia
 * 
 * @author Tom Hayden
 */
@Entity
@Table(name = "baia")
@AttributeOverrides( {
        @AttributeOverride(name="id", column=@Column(name="cdbaia")),
        @AttributeOverride(name="description", column=@Column(name="dsbaia")),
        @AttributeOverride(name="active", column=@Column(name="ativo"))
    })
public class Baia extends CodeData {

    @Column(name = "capacidade")
    private Short capacidade;

    /** Creates a new instance of Baia */
    public Baia() {
    }

    public Short getCapacidade() {
        return capacidade;
    }

    public void setCapacidade(Short capacidade) {
        this.capacidade = capacidade;
    }
    
}
